package com.hyb.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyb.Vo.StockVo;
import com.hyb.entity.Stock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyb.page.VoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  库存Mapper 接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Mapper
public interface StockMapper extends BaseMapper<Stock> {

    IPage<StockVo> getStocks(Page<StockVo> page, @Param("voQuery") VoQuery voQuery);

    StockVo selectStockById(Integer stockId);
}
